import http from '@/axios/http.ts'

/**
 * 添加碎片
 * @param {*} p 
 * @returns 
 */
export const uploadImage = (params) => {
    return http.UploadFileByPostFormData('/Image/UploadImage', params);
}

/**
 * 获取碎片列表
 * @param {*} p 
 * @returns 
 */
export const getImageList = (params) => {
    return http.get('/Image/GetImageList', params);
}

/**
 * 修改碎片信息
 * @param {*} p 
 * @returns 
 */
export const updateImage = (params) => {
    return http.post('/Image/UpdateImage', params);
}

/**
 * 获取相册下面的标签
 * @param {*} p 
 * @returns 
 */
export const getPhotoTag = (params) => {
    return http.post('/Image/GetPhotoTag', params);
}

/**
 * 删除碎片
 * @param {*} p 
 * @returns 
 */
export const deleteImage = (parmas) => {
    return http.post('/Image/DeleteImage?id=' + parmas);
}

/**
 * 获取评论列表
 * @param {*} p 
 * @returns 
 */
export const getCommentListByAdmin = (parmas) => {
    return http.get('/Comment/GetCommentListByAdmin', parmas);
}
